package cn.broadmax.boot.modules.aj.controller;


import cn.broadmax.boot.base.SuperController;
import cn.broadmax.boot.base.message.SResult;
import cn.broadmax.boot.modules.aj.entity.JzManageHistory;
import cn.broadmax.boot.modules.aj.mapper.JzManageHistoryMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 卷宗历史记录管理 前端控制器
 * </p>
 *
 * @author jexx
 * @since 2021-06-05
 */
@Api(tags = "卷宗历史管理")
@RestController
@RequestMapping("/aj/jz-history")
@RequiredArgsConstructor
public class JzManageHistoryController extends SuperController {

    @Autowired
    private final JzManageHistoryMapper jzManageHistoryMapper;

    @ApiOperation("添加")
    @PutMapping(value = "/insert")
    public SResult<Boolean> InsertPage(@RequestBody JzManageHistory jzManageHistory){
        jzManageHistoryMapper.insert(jzManageHistory);
        return SResult.ok("", Boolean.TRUE);
    }
}
